﻿@model MvcEasyProject.Models.LoginModel
@{
    Layout = null;
}

<link href="/theme/assets/bootstrap-rtl/css/bootstrap-rtl.min.css" rel="stylesheet" />
<link href="/theme/assets/font-awesome/css/font-awesome.css" rel="stylesheet" />
<link href="/theme/css/style.css" rel="stylesheet" />
<link href="/theme/css/style_responsive.css" rel="stylesheet" />
<link href="/theme/css/style_default.css" rel="stylesheet" id="style_color" />
<div id="login-body">
    @using (Html.BeginForm("Login", "Account", FormMethod.Post, new { target = "_parent" }))
    {
        @Html.AntiForgeryToken()
        @Html.ValidationSummary(true)
        <div class="lock">
            <i class="icon-lock"></i>
        </div>
        <div class="control-wrap">
            <h4>התחבר למערכת</h4>
            <div class="control-group">
                <div class="controls">
                    <div class="input-prepend">
                        <span class="add-on"><i class="icon-user"></i></span>@Html.TextBoxFor(m => m.UserName, new { placeholder = "שם משתמש" })
                        @Html.ValidationMessageFor(m => m.UserName)
                    </div>
                </div>
            </div>
            <div class="control-group">
                <div class="controls">
                    <div class="input-prepend">
                        <span class="add-on"><i class="icon-key"></i></span>@Html.PasswordFor(m => m.Password, new { placeholder = "סיסמה" })
                        @Html.ValidationMessageFor(m => m.Password)
                    </div>
                    <div class="mtop10">
                        <div class="block-hint pull-left small">
                            @Html.CheckBoxFor(m => m.RememberMe) זכור אותי
                        </div>
                        @*<div class="block-hint pull-right">
                                <a href="javascript:;" class="" id="forget-password">Forgot Password?</a>
                            </div>*@
                    </div>

                    <div class="clearfix space5"></div>
                </div>

            </div>
        </div>

    <input type="submit" class="btn btn-block login-btn" value="Login" onclick="loginPost('@Html.Raw(Json.Encode(Model))',null)" />
    }
    <!-- END LOGIN FORM -->
    <!-- BEGIN FORGOT PASSWORD FORM -->
    <form id="forgotform" class="form-vertical no-padding no-margin hide" action="index.html">
        <p class="center">Enter your e-mail address below to reset your password.</p>
        <div class="control-group">
            <div class="controls">
                <div class="input-prepend">
                    <span class="add-on"><i class="icon-envelope"></i></span>
                    <input id="input-email" type="text" placeholder="Email" />
                </div>
            </div>
            <div class="space20"></div>
        </div>
        <input type="button" id="forget-btn" class="btn btn-block login-btn" value="התחבר" />
    </form>
    <!-- END FORGOT PASSWORD FORM -->
    <!-- BEGIN JAVASCRIPTS -->
    <script src="/theme/js/jquery-1.8.3.min.js"></script>
    <script src="~/Scripts/MixFunctions.js"></script>
    <script src="/theme/assets/bootstrap-rtl/js/bootstrap.min.js"></script>
    <script src="/theme/js/jquery.blockui.js"></script>
    <script src="/theme/js/scripts.js"></script>
    <script>
        jQuery(document).ready(function () {
            //App.initLogin();
        });
    </script>
    <!-- END JAVASCRIPTS -->
</div>
<script>

</script>